package com.example.lockfulldemo.exception;

import com.example.lockfulldemo.enums.ErrorCodeEnum;
import lombok.Getter;

@Getter
public class BizException extends RuntimeException{
    private ErrorCodeEnum errorCode;

    public BizException(ErrorCodeEnum errorCodeEnum) {
        this.errorCode = errorCodeEnum;
    }

    public BizException(Throwable cause, ErrorCodeEnum errorCodeEnum) {
        super(cause);
        this.errorCode = errorCodeEnum;
    }
}
